﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.SessionState;
using GWEB.WebBase.Entity;
using GWEB.WebBase.Utility;
using GWEB.WebFrame.Public;

namespace GWEB.WebFrame.Models
{
    public class DictionaryTree
    {
        public PageInfo Init()
        {
            PageInfo pg = new PageInfo();
            HttpSessionState session = System.Web.HttpContext.Current.Session;
            pg.dict = BasePage.getDict(session);
            pg.Type = "DictionaryTree";
            pg.SMenuId = "CS08";
            pg.TableName = "tb_sys_dictionarytype";
            pg.KeyFieldName = "typeid";
            pg.Sop = BasePage.Grant(session, pg.SMenuId);
            pg.TreeParentFieldName = "PARENTID";
            pg.Sql = "select typeid as \"typeid\",typename as \"name\",parentid from tb_sys_dictionarytype where parentid>=0 order by typeid ";
            pg.FileUrl = "../Main/ManagerLay?type=Dictionary";
            return pg;
        }
    }
}